{% extends "lottery/index.html" %}
{% block body %}

<div class="qbkj-cont">
    
    <h3 class="kaij-tit">【{{contacts.lottery_publisher}}】{{contacts.lottery_name}}<em>{{contacts.code}}期</em> <em class="ui-head-r">{{contacts2.date}}</em></h3>
    
<table>
<tbody>
    {% for contact in contacts.lucky %}
<tr>
    <td>第{{contact.num}}注：</td>
    {% if contact.red_list %}
    {% for r in contact.red_list %}
    <td style="color: rgba(246,63,63,1);">{{r}}</td>
    {% endfor %}
    {% endif %}
    {% if contact.blue_list %}
    {% for b in contact.blue_list %}
    <td style="color: rgba(80,140,238,1);">{{b}}</td>
    {% endfor %}
    {% endif %}
    {% if contact.orange_list %}
    {% for o in contact.orange_list %}
    <td style="color: #ed8431;">{{o}}</td>
    {% endfor %}
    {% endif %}
    {% if contact.solida_list %}
    {% for s in contact.solida_list %}
    <td style="color: #696bc9;">{{s}}</td>
    {% endfor %}
    {% endif %}

</tr>
{% endfor %}
</tbody>
</table>
{% if not contacts.random_hidden %}
 <button style="margin-left: 25%;" onclick="location.reload()" class="button button2">再来一次</button>
{% endif %}
    <a href="/ai/?lucky=1&id={{contacts.id}}&l_id={{contacts.l_id}}&random={{contacts.random}}"><button
            style="margin-left: 25%;" class="button button1">
            {% if contacts.random|safe == 1|safe %}
            交给命运
            {% else %}
            注数更改
            {% endif %}
        </button></a>
</div>

{% endblock body %}